Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(InventoryTable): Set activeFilter only when filter exist #2286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LightOfHeaven1994
Copy link
Contributor

While I was trying to find the root cause of RedHatInsights/compliance-frontend#2239 , I found out that inventory has it's own thing.

Issue is super minor but it happens when you search by name on Inventory table and then you reset filters - but you can see that API requests will still contain hostname_or_id: with empty value

To reproduce:

  1. Navigate to Inventory systems table
  2. Search by name
  3. Open devtools network tab and observe it while clicking on reset filters

Request before:
https://console.stage.redhat.com/api/inventory/v1/hosts?hostname_or_id=&per_page....

Request after:
https://stage.foo.redhat.com:1337/api/inventory/v1/hosts?per_page...

@LightOfHeaven1994 LightOfHeaven1994 requested a review from a team as a code owner November 4, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant